﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Automobile.service.BLL;
using Automobile.service.Model;
using Automobile.service.Common;
namespace Automobile.service.UI
{
    public partial class Purchase : System.Web.UI.Page
    {
        WareHoseBLL bll = new WareHoseBLL();
        SupplierBLL bl = new SupplierBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DropDownList2.DataSource = bll.ShowListWareHose();
                DropDownList2.DataTextField = "WareHose_Name";
                DropDownList2.DataValueField = "WareHose_Id";
                DropDownList2.DataBind();
                DropDownList2.Items.Insert(0,"-请选择-");
                DropDownList1.DataSource = bl.ShowSupplier();
                DropDownList1.DataTextField = "Supplier_Name";
                DropDownList1.DataValueField = "Supplier_Id";
                DropDownList1.DataBind();
                DropDownList1.Items.Insert(0, "-请选择-");
            }
        }
    }
}